<%@page language="C#"%>
<%@import namespace="System.Collections.Generic" %>
<%@import namespace="My.Entities" %>
<%@import namespace="My.Web.Handler" %>
<%@import namespace="My.Web.Ui" %>

<script runat="server">
public class AppConfig
{
    public static string Domain = "";
    public static string CurDomain = "";
    public static string DirDocs = "";
}

public string ToHtml( IList<ArticleInfo> list )
{
    string detailURL;
    StringBuilder sb = new StringBuilder( "<ul>" );
    for( int i=0,len=list.Count;i<len; i++ )
    {
        detailURL = string.Format( CmsUi.UrlDetail,
                                   list[i].CategoryId.ToString(),1,list[i].Id.ToString()
                                  );
        sb.Append( string.Format( @"<li><a href=""{0:detailURL}"">{1:title}</a></li>",
                                    detailURL,
                                    list[i].Title.ToString() 
                                 ));
    }
    sb.Append( @"</ul>" );
    
    return sb.ToString();
}
</script>
<%
  // 配置当前目录的域名
  AppConfig.CurDomain = AppConfig.Domain + "/" + AppConfig.DirDocs;

  CmsHandler hdl = new CmsHandler( "cms" );
  
  lblArtList0.Text = ToHtml( hdl.GetArticles( -1,38,1,"","" ) );
  lblArtList1.Text = ToHtml( hdl.GetArticles( 24,10,1,"","" ) );
  /// lblArtList2.Text = LblArtList("5","noPage|key","20");
  /// lblArtList3.Text = LblArtList("25","noPage|key","12");
  /// //lblArtList4.Text = LblArtList("4","noPage|key","12");
  /// //lblArtList5.Text = LblArtList("26","noPage|key","12");
  /// lblArtList6.Text = LblArtList("22","noPage|key","20");
  /// lblArtList7.Text = LblArtList("2","noPage|key","14");
  /// lblArtList8.Text = LblArtList("3","noPage|key","14");
  /// lblArtList9.Text = LblArtList("4","noPage|key","14");

  /// lblTopClickList1.Text = LblTopClickList("日","12");
  /// lblTopClickList2.Text = LblTopClickList("周","12");
  /// lblTopClickList3.Text = LblTopClickList("月","12");

	/// lblArtList0.Text = WebApp.GetView( "view=docsHtml&op=GetArticlesList&catId=-1" );
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页 - 饮食健康 - 品味生活<asp:literal id="lblTitle" runat="server"></asp:literal></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<base target="_blank" />
<style>
  @import "css/layout.css";
  @import "css/index.css";
  @import "/_tools/jqui/themes/base/ui.all.css";

</style>

  <script type="text/javascript" src="<%=AppConfig.Domain%>/js/jquery.min.js"></script>
  <script type="text/javascript" src="<%=AppConfig.Domain%>/_tools/jqui/ui.core.js"></script>
  <script type="text/javascript" src="<%=AppConfig.Domain%>/_tools/jqui/ui.tabs.js"></script>

</head>
<body>
  <div id="container">
    <div id="header">
        <!--#include file="inc.header.aspx"-->
        <div id="intro">
          <div id="breadCrumb" class="left">
            您现在的位置：首页<!--品味生活 > 新闻中心 > 正文-->
          </div>
          <div id="search" class="right">
            <form action="<%=AppConfig.Domain%>/search.aspx" method="GET">
                <input type="text" name="keywords" value="" >
                <input type="submit" class="button" value="" >
            </form>
          </div>
        </div>
    </div>
    <!--第一屏-->
    <div class="inner_col">
      <div class="content">
        <div class="col_sub">

          <div id="news">
              <ul>
                  <li class="hd"><span class="tp"><span></span></span><a href="#news-1">内容中心</a></li>
                  <!--<li class="hd"><span class="tp"><span></span></span><a href="#news-2">每周推荐</a></li>-->
              </ul>

              <div id="news-1" class="bd">
                  <h3><a href="<%=AppConfig.CurDomain%>/list-0-1.html">更多...</a></h3>
                  <p><asp:literal id="lblArtList0" runat="server"></asp:literal></p>
              </div>
              <!--
              <div id="news-2" class="bd">
                  <h3><a href="<%=AppConfig.CurDomain%>/list-8-1.html">更多...</a></h3>
                  <p>周一:</p>
                  <p>周二:</p>
                  <p>周三:</p>
                  <p>周四:</p>
                  <p>周五:</p>
                  <p>周六:</p>
                  <p>周日:</p>
              </div>
              -->
          </div>

        </div><!--//col_sub-->
        <div class="col_main">
          <div id="promo">
              <div class="left">
                  <!--#include file="ad/google_336X280_pic.aspx"-->
              </div>
              <div>

              </div>
              <div class="clear"></div>
          </div>
          <div id="topic">
            <h2><a href="<%=AppConfig.CurDomain%>/list-17-1.html">天气热没胃口？来点酸的！</a></h2>
            <ul>
              <li><span><a href="<%=AppConfig.CurDomain%>/list-21-1.html">菜谱</a></span><em>|</em><a href="<%=AppConfig.CurDomain%>/Detail-17--24239.html">冰梅鸭块的做法</a><a href="<%=AppConfig.CurDomain%>/Detail-17--24231.html">酸酸甜甜柠檬鸡</a></li>
              <li><span><a href="<%=AppConfig.CurDomain%>/list-4-1.html" >药膳</a></span><em>|</em><a href="<%=AppConfig.CurDomain%>/Detail-25--23991.html">補血大棗飯</a><a href="<%=AppConfig.CurDomain%>/Detail-25--23990.html">防癌養生兼具明目之補眼藥膳</a></li>
              <li><span><a href="<%=AppConfig.CurDomain%>/list-23-1.html">美容</a></span><em>|</em><a href="<%=AppConfig.CurDomain%>/Detail-23--24077.html">鲜蛤冬瓜排骨汤</a><a href="<%=AppConfig.CurDomain%>/Detail-23--24074.html">莲子百合蒸南瓜</a></li>
              <li><span><a href="<%=AppConfig.CurDomain%>/list-22-1.html">粥品</a></span><em>|</em><a href="<%=AppConfig.CurDomain%>/Detail-22--24029.html">山药固肠粥</a><a href="<%=AppConfig.CurDomain%>/Detail-22--24040.html">软化血管食药粥</a></li>
            </ul>
          </div>
<!--
          <div id="info2" class="box">
            <span class="tp"><span></span></span>
            <div class="hd">
              <h2>美食天地</h2>
            </div>
            <div class="bd">

            </div>
          </div>
-->
        </div><!--col_main-->
      </div><!--//content-->
      <div class="side">
        <div id="scroller">
        	
            <div id="smallInfo">
            
                <ul>
                    <li class="hd"><span class="tp"><span></span></span><a href="#smallInfo-1">小窍门</a></li>
                    <li class="hd"><span class="tp"><span></span></span><a href="#smallInfo-2">常用食材</a></li>
                </ul>
            
                <div id="smallInfo-1" class="bd">
                    <h3><a href="<%=AppConfig.CurDomain%>/list-5-1.html">更多...</a></h3>
                    <p><asp:literal id="lblArtList2" runat="server"></asp:literal></p>
                </div>
                <div id="smallInfo-2" class="bd ui-tabs-hide">
                    <h3><a href="<%=AppConfig.CurDomain%>/list-22-1.html">更多...</a></h3>
                    <p><asp:literal id="lblArtList6" runat="server"></asp:literal></p>
                </div>
            
            </div>

        </div>
      </div>
      <div class="clear"></div>
    </div>
    <!--//第一屏-->
    <!--第二屏-->
    <div class="inner_col">
      <div class="content">
        <div class="col_sub">

              <div id="topClickList" style="position:relative">

                  <h3 style="position:absolute;right:30px;top:10px;">阅读排行榜</h3>
                  <ul>
                      <li class="hd"><span class="tp"><span></span></span><a href="#topClickList-1">日</a></li>
                      <li class="hd"><span class="tp"><span></span></span><a href="#topClickList-2">周</a></li>
                      <li class="hd"><span class="tp"><span></span></span><a href="#topClickList-3">月</a></li>
                  </ul>

                  <div id="topClickList-1" class="bd">
                      <p><asp:literal runat="server" id="lblTopClickList1"></asp:literal></p>
                  </div>
                  <div id="topClickList-2" class="bd ui-tabs-hide">
                      <p><asp:literal runat="server" id="lblTopClickList2"></asp:literal></p>
                  </div>
                  <div id="topClickList-3" class="bd ui-tabs-hide">
                      <p><asp:literal runat="server" id="lblTopClickList3"></asp:literal></p>
                  </div>

              </div>

        </div><!--//col_sub-->
        <div class="col_main">
          <div id="drug_food" class="box">
            <span class="tp"><span></span></span>
            <div class="hd">
              <h2>美食天地</h2>
            </div>
            <div class="bd">
              <div class="pic">
                <a href="<%=AppConfig.CurDomain%>/list-24-1.html" title="美食天地"><img src="<%=AppConfig.CurDomain%>/img/02.jpg" /></a>
              </div>
                <asp:literal id="lblArtList1" runat="server"></asp:literal>

              <div class="clear"></div>
              <div class="pic">
                <a href="<%=AppConfig.CurDomain%>/list-25-1.html" title="私房药膳"><img src="<%=AppConfig.CurDomain%>/img/02.jpg" /></a>
              </div>
              <asp:literal id="lblArtList3" runat="server"></asp:literal>
              <div class="clear"></div>

            </div>
          </div>
        </div><!--col_main-->
      </div><!--//content-->
      <div class="side">

              <div id="tabs">
                  <ul>
                      <li class="hd"><span class="tp"><span></span></span><a href="#tabs-1">运动</a></li>
                      <li class="hd"><span class="tp"><span></span></span><a href="#tabs-2">健康</a></li>
                      <li class="hd"><span class="tp"><span></span></span><a href="#tabs-3">中医</a></li>
                  </ul>

                  <div id="tabs-1" class="bd">
                      <h3><a href="<%=AppConfig.CurDomain%>/list-2-1.html">更多...</a></h3>
                      <p><asp:literal runat="server" id="lblArtList7"></asp:literal></p>
                  </div>
                  <div id="tabs-2" class="bd ui-tabs-hide">
                      <h3><a href="<%=AppConfig.CurDomain%>/list-3-1.html">更多...</a></h3>
                      <p><asp:literal runat="server" id="lblArtList8"></asp:literal></p>
                  </div>
                  <div id="tabs-3" class="bd ui-tabs-hide">
                      <h3><a href="<%=AppConfig.CurDomain%>/list-4-1.html">更多...</a></h3>
                      <p><asp:literal runat="server" id="lblArtList9"></asp:literal></p>
                  </div>

              </div>

      </div>
      <div class="clear"></div>
    </div>
    <!--//第二屏-->
    <div id="ad">
        <div class="left">
            <!--#include file="ad/google_728X90_pic.aspx"-->
        </div>
        <div class="right">
        </div>
        <div class="clear2"></div>
    </div>
    <!--第三屏-->
    <div class="inner_col">
      <div class="content">
        <!--
        <div id="lpanl">
          <div id="cmd_m" class="box">
              <span class="tp"><span></span></span>
              <div class="hd">
                <h2><a href="<%=AppConfig.CurDomain%>/list-26-1.html">家常菜式</a></h2>
              </div>
                <asp:literal id="lblArtList5" runat="server"></asp:literal>
              <div class="bd">
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/060A64620Z.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23858">熏干炒芦蒿</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/06102R45Y3.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23857">萝卜炖牛腩</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/13131K55594.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23856">松仁玉米</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/2511510E5O.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23855">川味回锅肉</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/250GJ43940.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23854">板栗红烧肉</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/200I0452033.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23853">椒盐排骨</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/1ZH24XS4.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23851">炸酱面</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.ukdyw.cn/upimg/userup/0811/1ZFU2O29.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23850">雪菜杂炒</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://whkclm.maifou.net/user_files/28/1678/images/upload/Image/doufu02.gif" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23849">麻婆豆腐</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://china.gmail.cn/bbs/attachments/month_0804/20080430_0888ba8b4c1dcecf68e3QuwRviRRzRS3.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23848">圆椒炒鸡蛋</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://images.55bbs.com/day_081111/20081111_42e8c5e951f26551aad12dqxEKkWDt0m.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23834">青椒炒猪肚</a></span>
                  </div>
                </div>
                <div class="item">
                  <div class="pic">
                    <img src="http://www.sgpr.cn/duanqi/upfile/%E9%B1%BC%E5%A4%B4%E8%B1%86%E8%85%90%E6%B1%A4.jpg" />
                  </div>
                  <div class="txt">
                    <span><a href="http://www.themz.cn/docs/Detail.aspx?catId=26&id=23833">鱼头豆腐汤</a></span>
                  </div>
                </div>
                <div class="clear"></div>
              </div>
          </div>
        </div>
        -->
      </div><!--//content-->
      <div class="side">
          <div id="" class="box">
            <span class="tp"><span></span></span>
            <div class="hd">
              <h2>友情链接</h2>
            </div>
            <div class="bd">
                <a href="http://www.gzglhouse.com/" target="_blank" title="">冠灵家居购物网</a><br />
                <a href="http://shop35686462.taobao.com/" target="_blank" title="">冠灵家居淘宝店</a><br />
                <a href="http://www.ddove.com/"     target="_blank" title="">定鼎专业园林网</a><br />
                <a href="http://yadesign.themz.cn/" target="_blank" title="">本站设计师博客</a><br />
            </div>
          </div>
      </div>
      <div class="clear"></div>
    </div>
    <!--//第三屏-->
    <div id="footer">
        <!--#include file="inc.footer.aspx"-->
    </div>
  </div>

  <script type="text/javascript">

  $(function() {
      $("#news").tabs({ event: 'mouseover'  });
      $("#tabs").tabs({ event: 'mouseover'  });
      $("#topClickList").tabs({ event: 'mouseover'  });
      $("#smallInfo").tabs({ event: 'mouseover'  });
  });
  </script>
</body>
</html>